package com.bclz.environment

class EnvironmentKey(var year:String,var month:String,var temperature:Int) extends Ordered[EnvironmentKey] with Serializable{


  override def compare(that: EnvironmentKey): Int = {

      if(this.year!=that.year)
        return this.year.compareTo(that.year)

      if(this.month!=that.month)
        return this.month.compareTo(that.month)

      this.temperature.compareTo(that.temperature)

  }
}
